<%--                                                                       --%>
<%-- Copyright (c) 2001-2004 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries.                       --%>
<%--                                                                       --%>

    <!-- Start List here -->
    <table class="dataTable" border="0" cellspacing="1" cellpadding="2" 
           summary="wizard phase list table" width="100%">
      <tr class="listHeader"> 
        <th id="Name" align="left" width=20%><bean:message key="cs.name"/></th>
        <th id="Desc" align="left" width=30%><bean:message key="cs.description"/></th>
        <th id="Goal" align="left" width=30%><bean:message key="cs.goal"/></th>
        <th id="Action" align="left" width=20%><bean:message key="cs.actions"/></th>
      </tr>

      <c:forEach var="onePhase" items="${msNewForm.map.phaseList}" 
                 varStatus = "status" >
        <c:if test="${status.count%2 == 0}">
         <c:set var="classVar" value="listEven" scope="page" />
        </c:if>
        <c:if test="${status.count%2 != 0}">
          <c:set var="classVar" value="listOdd" scope="page" />
        </c:if>
        
       <tr class='<c:out value="${classVar}"/>' > 
       
          <td headers="Name" align="left" width=20%> 
          	<c:out value="${onePhase.map.phaseName}"/>
            <input type="hidden" name="existingPhaseName" 
                   value='<c:out value="${onePhase.map.phaseName}"/>'/>
            <input type="hidden" name="existingPhaseIndex" 
                     value='<c:out value="${onePhase.map.phaseIndex}"/>'/>       
          </td>
          <td headers="Desc" align="left" width=30%>
          	<c:out value="${onePhase.map.phaseDescription}"/>
          </td>
          <td headers="Goal" align="left" width=30%>
             <c:out value="${onePhase.map.phaseGoal}"/> 
          </td> 
          
          <td headers="Action" nowrap align="left" width=20%>
             <c:url var="editUrl" value="/cs/microsite/phaseEdit.do">
             	  <c:param name="phaseToProcess" value="${status.count-1}"/>
             </c:url>
             <c:url var="deleteUrl" value="/cs/microsite/phaseDelete.do">
             	  <c:param name="phaseToProcess" value='${status.count-1}'/>
             </c:url>
             <a href='<c:out value="${editUrl}"/>'>
             	<html:img page="/cs/images/action/icon_edit.gif" styleClass="actionIcon" 
            						altKey="cs.image.alt.edit" border="0"/>
             </a>
             <a href='<c:out value="${deleteUrl}"/>' onclick="return confirmDelete()">
             	<html:img page="/cs/images/action/icon_delete.gif" styleClass="actionIcon" 
            						altKey="cs.image.alt.delete" border="0"/>
             </a>
            &nbsp;
          </td>
        </tr>   
      </c:forEach>
    </table>
    <%-- End phase list table --%>          
  
